﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ShopClaim.aspx.cs" Inherits="NJL.Web.Shop.ShopClaim" %>

<%@ Register Src="/Controls/WUCHeader1.ascx" TagName="WUCHeader1" TagPrefix="uc1" %>
<%@ Register Src="/Controls/WUCFooter1.ascx" TagName="WUCFooter1" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>商户认领-农家乐网</title>
    <link rel="stylesheet" type="text/css" href="/Styles/shop/shop002/shop.css" media="screen" />
    <script src="/Scripts/jquery-1.4.1.min.js" type="text/javascript" language="javascript"></script>
    <script type="text/javascript">
        function check() {
            var fileUpload1 = $('#FileUpload1').val();
            var fileUpload2 = $('#FileUpload2').val();
            if ($.trim(fileUpload1).length == 0) {
                alert("请上传营业执照副本扫描件");
                return false;
            }
            var fileOk1 = false;
            var fileExtension1 = fileUpload1.substring(fileUpload1.lastIndexOf('.')).toLowerCase();
            var allowedExtensions = new Array(".jpg", ".gif", ".jpeg");
            for (var i in allowedExtensions) {
                if (allowedExtensions[i] == fileExtension1) {
                    fileOk1 = true;
                }
            }
            if (!fileOk1) {
                alert("只能上传.jpg、.gif格式的图片文件哦");
                return false;
            }
            if ($.trim(fileUpload2).length == 0) {
                alert("请上传税务登记证扫描件");
                return false;
            }
            var fileOk2 = false;
            var fileExtension2 = fileUpload2.substring(fileUpload2.lastIndexOf('.')).toLowerCase();
            for (var i in allowedExtensions) {
                if (allowedExtensions[i] == fileExtension2) {
                    fileOk2 = true;
                }
            }
            if (!fileOk2) {
                alert("只能上传.jpg、.gif格式的图片文件哦");
                return false;
            }
            return true;
        }
    </script>
</head>
<body style="background: none;">
    <form id="form1" runat="server">
    <p class="m_top_10 font14">
        <strong>营业执照副本扫描件&nbsp;</strong><asp:FileUpload ID="FileUpload1" runat="server" size="10" /></p>
    <p class="m_top_10 font14">
        <strong>税务登记证扫描件&nbsp;&nbsp;&nbsp;&nbsp;</strong><asp:FileUpload ID="FileUpload2"
            runat="server" size="10" /></p>
    <p class="submit">
        <asp:Button ID="btnSubmint" runat="server" Text="提交审核" class="popgreenbtn" OnClick="btnSubmint_Click"
            OnClientClick="return check()" />
    </p>
    </form>
</body>
</html>
